<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="default" />
<base   target="_self"/>
</head>
<body>
<form:form name="listForm" action="" modelAttribute="brandCate" method="post" class="form-inline" role="form">
            <div class="o-l-search-builder f_1">
            <div id="statement-search-builder" class="collapse" style="height:auto;">
    		<div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">品牌中文名：</label>
	                      <div class="col-sm-9 f_6">
	                       	<form:input id="brandCname" path="brandCname"class="f_5" autocomplete="off"/>
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_7">品牌英文名：</label>
	                      <div class="col-sm-9 f_6">
	                         <form:input id="brandEname" path="brandEname"class="f_5"/>
	                      </div>
	                  </div>
	             </div>
    		<div class="f_2">
	                 <div class="form-group col-sm-6">
	                      <label for="inputEmail3" class="col-sm-3 control-label f_4">品牌类型：</label>
	                      <div class="col-sm-9 f_6">
	                        <ossp:select dictType="BRAND_TYPE" defaultSelected="${ brandCate.brandType}" name="brandType" id="brandType" class_="f_5"></ossp:select>
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
						<label for="brandStatus" class="col-sm-3 control-label f_4">品牌状态:</label>
						<div class="col-sm-9 f_6">
							<ossp:select dictType="brandStatus" defaultSelected="${brandCate.status}" name="status"id="status" class_="f_5"></ossp:select>
						</div>
					</div>
	             </div>
	         </div>
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                   		<form:input id="brandNo" path="brandNo"class="f_5" placeholder="品牌编号"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-up"></span></a>
	         </div>
	     </div>
        <div class="o-l-search-builder f_9">
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead class="t_1">
			<thead>
				<tr>
					<th style="width: 1px"></th>
					<th>编号</th>
					<th>中文名</th>
					<th>英文名</th>
					<th>招商分类</th>
					<th>类别</th>
					<th>状态</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.list}" var="bc">
					<tr  data-herf="javascript:selectRow('${bc.id}');" data-target="_self">
						<td class="o-l-tab-ckb" >
							<input type="radio" name="pk"  class="pk" id="${bc.id}" data-ckb-id="${bc.id}">
						</td>
						<td id="brandNo">${bc.brandNo}</td>
						<td id="brandCname">${bc.brandCname}</td>
						<td>${bc.brandEname}</td>
						<td id="cateName">${bc.cateName}</td>
						<td><ossp:value dictType="BRAND_TYPE" key="${bc.brandType}"/></td>
						<td><ossp:value dictType="brandStatus" key="${bc.status}"/></td>
					</tr>
				</c:forEach>
				
			</tbody>
		</table>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
		<div class="modal-footer">
	      	<button type="button" onclick="templeteSelector_OK('brandCate');"  class="btn btn-success btn_3">确认</button>
	        <button type="button" class="btn btn-danger btn_5" data-dismiss="modal" onclick="closeTempleteSelector();">取消</button>
	      </div>
		</div>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
<script type="text/javascript" src="${staticPath}/lib/jquery-autocomplete/1.1/jquery.autocomplete.min.js"></script>
<link rel="stylesheet" href="${staticPath}/lib/jquery-autocomplete/1.1/jquery.autocomplete.css" />
<script type="text/javascript">
//自动补全
var options={
		 width: 200,
		 highlight: false,
		 multiple: false,
		 scroll: true,
		 max:10,
		 scrollHeight: 300
	};
$("#brandCname").autocomplete("${contextPath}/biz/brand/brand/autocompleteBrandName?name=cn",options );
$("#brandEname").autocomplete("${contextPath}/biz/brand/brand/autocompleteBrandName?name=en",options );
</script>
</form:form>
</body>
</html>